package 实现类.作业;

public class zuoye4 {
    public static void main(String[] args) {
        String s="name=zhangsan age=18 classNo=090728";
        String j=s.replaceAll("="," ");
        String[] k=j.split(" ");
        for (int i=0;i<k.length;i++){
            if (i%2==0){
                System.out.println(k[i]);
            }

        }
    }
}
